package com.yb.core.web.db.model;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.metadata.OrderItem;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * Copyright (C), 2022-2023, 姚兵
 * Author: 32210
 * Date: 2023/5/7 17:16
 * FileName: PageRequest
 * Description:
 */
@ApiModel(value = "分页", description= "分页信息")

@Data
public class XczxPage<T> extends Page<T> implements IPage<T> {

    private static final long serialVersionUID = 8545996863226528798L;

    @ApiModelProperty(value = "参数")
    private T condition;


    @ApiModelProperty(value = "排序规则")
    private List<OrderItem> orders;




    public void setOrders(List<OrderItem> orders) {
        super.setOrders(orders);
    }

    public List<OrderItem> getOrders() {
        return super.orders;
    }

    @Override
    public String toString() {
        return "KkbPage{" +
                "condition=" + condition +
                ", orders=" + orders +
                '}';
    }
}
